from django.shortcuts import render

# Create your views here.
import tushare
from django.http import HttpResponse


def index(request):
    ver = tushare.__version__
    return HttpResponse('tushare 啦啦在啦~当前版本是 %s' % ver)

def test(request):
    data = tushare.get_hist_data('600848', ktype='M')
    return HttpResponse(data.to_json())


# def aaaaa(request, question_id):
#     response = "你正在看的是 %s."
#     return HttpResponse(response % question_id)
